package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.SUBMIT_TEXT_MESSAGE;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class SubmitTextMessageApi implements IRequestApi, IRequestType {

    private ReqSubmitTextMessageBean overripe;

    public SubmitTextMessageApi(ReqSubmitTextMessageBean overripe) {
        this.overripe = overripe;
    }

    @NonNull
    @Override
    public String getApi() {
        return SUBMIT_TEXT_MESSAGE;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class ReqSubmitTextMessageBean {
        private ArrayList<HesitancyBean> hesitancy;

        public ReqSubmitTextMessageBean(ArrayList<HesitancyBean> hesitancy) {
            this.hesitancy = hesitancy;
        }
    }

    public static final class HesitancyBean {

        private long blacking;
        private long commanddoman;
        private String blackbird;
        private String tenebrescence;
        private int fleury;
        private int jiao;
        private int tabasco;
        private int phylogenic;
        private String sdcd;

        private String plainsman;
        private String psychoacoustic;
        private String shrewsbury;
        private String pneumatism;
        private String retractility;
        private String disorganized;

        @Override
        public String toString() {
            return "HesitancyBean{" +
                    "blacking=" + blacking +
                    ", commanddoman=" + commanddoman +
                    ", blackbird='" + blackbird + '\'' +
                    ", tenebrescence='" + tenebrescence + '\'' +
                    ", fleury=" + fleury +
                    ", jiao=" + jiao +
                    ", tabasco=" + tabasco +
                    ", phylogenic=" + phylogenic +
                    ", sdcd='" + sdcd + '\'' +
                    ", plainsman='" + plainsman + '\'' +
                    ", psychoacoustic='" + psychoacoustic + '\'' +
                    ", shrewsbury='" + shrewsbury + '\'' +
                    ", pneumatism='" + pneumatism + '\'' +
                    ", retractility='" + retractility + '\'' +
                    ", disorganized='" + disorganized + '\'' +
                    '}';
        }

        public void setBlacking(long blacking) {
            this.blacking = blacking;
        }

        public void setCommanddoman(long commanddoman) {
            this.commanddoman = commanddoman;
        }

        public void setBlackbird(String blackbird) {
            this.blackbird = blackbird;
        }

        public void setTenebrescence(String tenebrescence) {
            this.tenebrescence = tenebrescence;
        }

        public void setFleury(int fleury) {
            this.fleury = fleury;
        }

        public void setJiao(int jiao) {
            this.jiao = jiao;
        }

        public void setTabasco(int tabasco) {
            this.tabasco = tabasco;
        }

        public void setPhylogenic(int phylogenic) {
            this.phylogenic = phylogenic;
        }

        public void setSdcd(String sdcd) {
            this.sdcd = sdcd;
        }

        public void setPlainsman(String plainsman) {
            this.plainsman = plainsman;
        }

        public void setPsychoacoustic(String psychoacoustic) {
            this.psychoacoustic = psychoacoustic;
        }

        public void setShrewsbury(String shrewsbury) {
            this.shrewsbury = shrewsbury;
        }

        public void setPneumatism(String pneumatism) {
            this.pneumatism = pneumatism;
        }

        public void setRetractility(String retractility) {
            this.retractility = retractility;
        }

        public void setDisorganized(String disorganized) {
            this.disorganized = disorganized;
        }
    }

}


